package com.alibaba.dubbo.rpc.client;

import java.util.concurrent.atomic.AtomicLong;

public abstract class AbstractProxyBuilder implements ProxyBuilder {

	@Override
	public <T> T create(String url, Class<T> clazz) {
		return create(url, clazz, new Context());
	}
	
	
	private AtomicLong id = new AtomicLong(0);
	/**
	 * 获得下一个请求的id号码
	 * @return
	 */
	public long nextRequestId(){
		return id.getAndAdd(1);
	}
}
